<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8" />
    <title>无线公共支持综合网管理平台</title>
    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/animate.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font-awesome.min.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/icon.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/app.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/ui/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/ui/zTree/css/zTreeStyle/zTreeStyle.css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bianfeng.css" type="text/css" />
    <!--[if lt IE 9]>
    <script src="__ROOT__/Public/admin/js/ie/html5shiv.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/respond.min.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/excanvas.js"></script>
    <![endif]-->
</head>
<body class="">
<section class="vbox">
    <include file="Public:header" />
    <section>
        <section class="hbox stretch">
            <aside class="bg-black aside-md hidden-print hidden-xs" id="nav">
                <include file="Public:left" />
            </aside>
            <section id="content">
                <section class="hbox stretch">
                    <section>
                        <section class="vbox">
                            <section class="scrollable padder">
                                <div class="m-b-md">
                                    <h3 class="m-b-none">修改美术资源图片</h3>
                                </div>
                                <section class="panel panel-default">
                                    <div class="panel-body">
                                        <form class="form-horizontal" action="{:U('Admin/Pic/Edit', '', false, true)}" enctype="multipart/form-data" method="post">
                                            <div class="form-group"></div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">图片标题</label>

                                                <div class="col-sm-10">
                                                   <!--   <input name="article_column" type="hidden" value="{$article.article_column}" id="ztree_id">
                                                    <input name="id" type="hidden" value="{$pic.id}">
                                                    <input name="isedit" type="hidden" value="{$isedit}">
                                                    -->
                                                    <input name="id" type="hidden" value="{$pic.id}">
                                                    <input name="pic_name" type="text" id="max_length_input_01" class="form-control" placeholder="请输入标题" value="{$pic.name}" maxlength="20" data-required="true" />

                                                    <p class="max_p"><span id="max_no_01">0</span>/20</p>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">图片简介</label>

                                                <div class="col-sm-10">
                                                    <textarea name="pic_des" id="max_length_input" class="form-control parsley-validated" maxlength="100" rows="3" data-required="true" placeholder="文章摘要内容不超过100字">{$pic.des}</textarea>

                                                    <p class="max_p"><span id="max_no">0</span>/100</p>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">用户分类</label>

                                                <div class="col-sm-10">
                                                    <select name="column" class="form-control m-b">
                                                        <option value="3" <if condition="$pic.pic_column eq 3 ">selected="selected"</if> >2D 原画人物</option>
                                                        <option value="4" <if condition="$pic.pic_column eq 4 ">selected="selected"</if> >2D ICON</option>
                                                        <option value="5" <if condition="$pic.pic_column eq 5 ">selected="selected"</if> >2D 整套UI</option>
                                                        <option value="6" <if condition="$pic.pic_column eq 6 ">selected="selected"</if> >2D 动作</option>
                                                        <option value="7" <if condition="$pic.pic_column eq 7 ">selected="selected"</if> >2D 特效</option>
                                                        <option value="8" <if condition="$pic.pic_column eq 8 ">selected="selected"</if> >3D 角色</option>
                                                        <option value="9" <if condition="$pic.pic_column eq 9 ">selected="selected"</if> >3D 场景</option>
                                                        <option value="10" <if condition="$pic.pic_column eq 10 ">selected="selected"</if> >3D 动作</option>
                                                        <option value="11" <if condition="$pic.pic_column eq 11 ">selected="selected"</if> >3D 特效</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                           <!--  <div class="form-group">
                                                <label class="col-sm-2 control-label">上传文件</label>

                                                <div class="col-sm-10">
                                                    <input type='file' name='file' value="">
                                                </div>
                                            </div> --> 
                                            <div class="line line-dashed b-b line-lg pull-in"></div>
                                            <div class="form-group">
                                                <div class="col-sm-4 col-sm-offset-2">
                                                    <button type="button" class="btn btn-default" id="btn_back">取消</button>
                                                    <button type="submit" class="btn btn-primary">修改</button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </section>
                            </section>
                        </section>
                    </section>
                </section>
                <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen,open" data-target="#nav,html"></a>
            </section>
        </section>
    </section>
</section>
<script src="__ROOT__/Public/admin/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="__ROOT__/Public/admin/js/bootstrap.js"></script>
<!-- App -->
<script src="__ROOT__/Public/admin/js/bianfeng.js"></script>
<script src="__ROOT__/Public/admin/js/app.js"></script>
<script>
    $('form').submit(function () {
        var tInpit = $('#max_length_input_01');
        var oInput = $('input[type="file"]');
        if (tInpit.val() == '') {
            alert('请填写标题');
            return false;
        }
        if (oInput.val() == '') {
            alert('请选择图片');
            return false;
        }
    });
</script>
</body>
</html>